<?php
namespace Common\Controller;

use Core\Application;
use Phalcon\Mvc\Controller as PhalconController;

/**
 * Home controller.
 */
class ErrorController extends PhalconController
{

    /**
     * 404 page.
     * @View
     * @return void
     */
    public function show404Action()
    {
        $this->response->setStatusCode('404', 'Page not found');
        $this->view->pick('Error/show404', Application::SYSTEM_DEFAULT_MODULE);
    }
    /**
     * 500 page.
     * @View
     * @return void
     */
    public function show500Action()
    {
        $this->response->setStatusCode('500', 'Internal Server Error');
        $this->view->pick('Error/show500', Application::SYSTEM_DEFAULT_MODULE);
    }

}

